﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToRTR.CApExportToRTRGeometry
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll


namespace DnProcessSimulateCommands.ExportToRTR{

public class CApExportToRTRGeometry : ICApExportToRTRWriteable
{
  private const string SCALE = "0.001 0.001 0.001";
  private string m_fileName;

  public CApExportToRTRGeometry(string fileName) => this.m_fileName = fileName;

  public void Write(CApExportToRTRXmlWriter writer)
  {
    writer.WriteStartElement("geometry");
    this.WriteMesh(writer);
    writer.WriteEndElement();
  }

  private void WriteMesh(CApExportToRTRXmlWriter writer)
  {
    writer.WriteStartElement("mesh");
    writer.WriteAttributeString("filename", this.m_fileName);
    writer.WriteAttributeString("scale", "0.001 0.001 0.001");
    writer.WriteEndElement();
  }
}
